package com.jyw.business.ins.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jyw.business.ins.domain.InsPlanSkip;
import com.jyw.business.ins.domain.model.CreateTaskTimeRage;

import java.time.LocalDate;
import java.util.List;

/**
 * 巡检计划跳过任务储存Service接口
 *
 * @author zhangcheng
 * @date 2023-12-25
 */
public interface IInsPlanSkipService extends IService<InsPlanSkip> {

    /**
     * 创建跳过任务
     *
     * @param planId
     * @param skipDate
     * @param skipType
     * @param timeRages
     */
    void saveSkipTask(Long planId, LocalDate skipDate, Integer skipType,List<CreateTaskTimeRage> timeRages);

    /**
     * 删除跳过任务
     *
     * @param planId
     * @param skipDate
     */
    void deleteSkipTask(Long planId, LocalDate skipDate);

    /**
     * 查询跳过存储任务
     *
     * @param planId
     * @param skipDate
     * @return
     */
    List<InsPlanSkip> findSkipTask(Long planId, LocalDate skipDate);
}
